package ltd.smallwang.client.task.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.Null;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author justd
 * @description 功能描述
 * @since 2024-04-25 00:48
 **/
@Data
public class TaskQry {
  @Min(0)
  @Max(1)
  @Null
  private Integer starFlag;
  @Min(0)
  @Max(1)
  @Null
  private Integer completeFlag;
  /**
   * example:
   * 2000-10-31T01:30:00.000-05:00
   * 2024-03-31T01:30:00.000Z
   */
  @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
  @Null
  private LocalDateTime startTime;

  @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
  @Null
  private LocalDateTime endTime;
}
